vhxubo's blog
关于

manjaro 配置

双系统时间同步

键映射

也可以在系统设置里面直接设置,硬件 输入设备 键盘

“ Visual Studio Code无法监视此大工作空间中的文件更改”

在Linux上运行Visual Studio代码 [Arch Linux] [Manjaro] How to avoid "Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

To avoid this error, we need to increase the inotify watcher limit.

The way to do this is different on Arch based distributions than other Linux distributions.

Instructions for Arch Linux/Manjaro

Check for an already existing inotify config file (recent versions of Manjaro include one)

ls /etc/sysctl.d/*-max_user_watches.conf

a) If no output

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system

b) If the command outputs a file

(in the rare case where it outputs multiple files, continue using the last one in the list)

# replace `/etc/sysctl.d/50-max-user-watches.conf` with the file returned from the previous `ls` command
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/50-max_user_watches.conf && sudo sysctl --system

Check it's working

cat /proc/sys/fs/inotify/max_user_watches

Expected output: 524288

清理缓存

给你的Arch Linux 清理空间腾出地方 | guqing's blog

清理安装包缓存

$ sudo pacman -Scc

清理孤立的软件包

$ sudo pacman -Rns $(pacman -Qtdq)

清理日志

$ journalctl --vacuum-size=50M

安装 .deb

How To Convert DEB Packages Into Arch Linux Packages - OSTechNix

滚轮慢